import com.ming.designPatterns.observerPattern.ConcreteObserver;
import com.ming.designPatterns.observerPattern.ConcreteSubject;

/**
 * @Auther: tangC
 * @Date: 2020/7/14 17:25
 * @Description:
 */
public class Test {
    public static void main(String[] args) {
        ConcreteObserver obs = new ConcreteObserver();
        ConcreteSubject sub = new ConcreteSubject();
        sub.attach(obs);
        sub.setState(666);
        sub.notify("just test subject notify function!");
    }
}
